package com.aierkeji.call.b2c.controller;

import java.util.Map;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.aierkeji.call.b2c.service.AkjCallClueHistoryService;

@RestController
@RequestMapping("callClueHistory")
public class AkjCallClueHistoryController extends BaseController{
	
	private final Logger log = LogManager.getLogger(getClass());
	
	@Autowired
	AkjCallClueHistoryService akjCallClueHistroyService;
	
	/**
	 * 查询线索详情
	 * @param map
	 * @return
	 */
	@PostMapping("findCallClueHistroy")
	//增加了这个注解就可以角色控制
//    @RequiresRoles(value= {Contants.ROLE_ID_SALES,Contants.ROLE_ID_ADMIN},logical=Logical.OR)
	public Map<String, Object> findCallClue(@RequestBody  Map<String, Object> map) {
		
		return akjCallClueHistroyService.findCallClueHistroyById(map);
	}

}
